import { ElMessage } from 'element-plus';


export default meta => {
  let infoArr = [ 200, 201 ];

  if ( infoArr.includes( meta.status ) ) {
    ElMessage( {
      message: meta.msg,
      type: 'success',
    } )
  } else {
    ElMessage( {
      message: meta.msg,
      type: 'error',
    } )
  }

  return infoArr.includes( meta.status );
}